package com.lecture.hibernate.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractMajor entity provides the base persistence definition of the Major
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractMajor implements java.io.Serializable {

	// Fields

	private Integer majorId;
	private School school;
	private String majorName;
	private String majorRemark;
	private Set optionsubjects = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractMajor() {
	}

	/** full constructor */
	public AbstractMajor(School school, String majorName, String majorRemark,
			Set optionsubjects) {
		this.school = school;
		this.majorName = majorName;
		this.majorRemark = majorRemark;
		this.optionsubjects = optionsubjects;
	}

	// Property accessors

	public Integer getMajorId() {
		return this.majorId;
	}

	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}

	public School getSchool() {
		return this.school;
	}

	public void setSchool(School school) {
		this.school = school;
	}

	public String getMajorName() {
		return this.majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	public String getMajorRemark() {
		return this.majorRemark;
	}

	public void setMajorRemark(String majorRemark) {
		this.majorRemark = majorRemark;
	}

	public Set getOptionsubjects() {
		return this.optionsubjects;
	}

	public void setOptionsubjects(Set optionsubjects) {
		this.optionsubjects = optionsubjects;
	}

}